import { createApp } from 'vue'
import App from '@/App.vue'
//引入element-plus插件与样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//配置element国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// svg插件需要配置代码
import 'virtual:svg-icons-register'
//全局组件的插件
import globalComponents from '@/components'
//清理全局样式
import '@/styles/index.scss'
//路由
import router from './router'
//pinia
import pinia from '@/store'
const app = createApp(App)
//国际化
app.use(ElementPlus, {
  locale: zhCn,
})
//注册自定义插件
app.use(globalComponents)
//注册路由
app.use(router)
//注册仓库
app.use(pinia)
app.mount('#app')
